function Rectangle (width, height) {
  this,width = width
  this.height = height
}

Rectangle.prototype = {
  setWidth(width) {
    this.width = width
  },
  setHeight(height) {
    this.height = height
  }
}

function Square(width) {
  this.width = width
}
Square.prototype = {
  setWidth(width) {
    this.width = width
  }
}

function Square_LSP(width) {
  this.width = width
  this.height = width
}

Square_LSP.prototype = {
  setWidth (width) {
    this.width = width
  },
  setHeight (height) {
    this.setWidth(height)
  }
}